FROM php:7.4-fpm


RUN docker-php-ext-install -j$(nproc) bcmath calendar exif gettext sockets dba mysqli pcntl pdo_mysql shmop sysvmsg sysvsem sysvshm \
    && apt-get update && apt-get install -y --no-install-recommends libicu-dev && docker-php-ext-install -j$(nproc) intl \
    && apt-get install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev  && docker-php-ext-configure gd --with-webp=/usr/include/webp --with-jpeg=/usr/include --with-freetype=/usr/include/freetype2/ && docker-php-ext-install -j$(nproc) gd \
    && apt-get install -y --no-install-recommends libxml2-dev libtidy-dev libxslt1-dev  && docker-php-ext-install -j$(nproc) soap xmlrpc xsl \
    && apt-get install -y --no-install-recommends libzip-dev && docker-php-ext-install -j$(nproc) zip \
    && pecl install redis-4.0.1 && docker-php-ext-enable redis \
    && docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache \
    && apt-get install librdkafka-dev -y && pecl install rdkafka && docker-php-ext-enable rdkafka \
    && rm -r /var/lib/apt/lists/* 
    


